package csel.controller.commands;

import csel.model.GameCommand;
import csel.model.Model;
import csel.view.GameViewport;

public class AttackCommand implements GameCommand
{

	private Model model;
	private GameViewport gameViewPort;
	private GameCommand gameCommand;
	
	public AttackCommand(Model model, GameViewport gameViewport)
	{
		this.model = model;
		this.gameViewPort = gameViewport;
		this.gameCommand = new HideDialogCommand(gameViewport);
	}
	
	public void execute()
	{
		model.getPlayerCharacter().attack();
		gameViewPort.accept(gameCommand);
	}

}
